<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>后盾人 - houdunren.com</title>
  </head>
  <body>
    <div name="houdunren"></div>
    <div id="xj"></div>
    <script>
      //   console.log(document.body.childNodes)
      const nodeLists = document.querySelectorAll('div')
      const collection = document.getElementsByTagName('div')

      console.log(collection.xj)

      //   console.log(collection.length)

      //   for (let i = 0; i < collection.length; i++) {
      //     console.log(collection.item(i))
      //   }
    </script>
  </body>
</html>
